<template>
   <div class="merchandise-management views-container">
        <div class="wlm-table">
              <div class="wlm-table-content">
              <!--  -->
             <el-table :ref="tableFormatData.treasurehelp.key"
                :data="tableFormatData.treasurehelp.tableData"
                @selection-change="handleSelectionChange"
                style="width:100%"
                >
                <el-table-column label="用户名"  >
                    <template slot-scope="scope">
                        <span>{{scope.row.nickname}}</span>
                    </template>
                </el-table-column>
                 <el-table-column label="状态"  >
                    <template slot-scope="scope">
                        <el-tag type="success" v-if="scope.row.status==1">助力成功</el-tag>
                        <el-tag type="danger" v-if="scope.row.status==0">助力失败</el-tag>
                    </template>
                </el-table-column>
                 <el-table-column label="创建时间"  >
                    <template slot-scope="scope">
                        <span>{{scope.row.create_time}}</span>
                    </template>
                </el-table-column>
             </el-table>
              <div class="pagination-content flex-row flex-justify-e flex-align-c">
               <el-pagination
            :disabled="!hasTableData"
            @size-change="listPageChange"
            @current-change="listPageChange"
            :current-page.sync="tableFormatData.treasurehelp.pagination.page"
            :page-sizes="tableFormatData.treasurehelp.pagination.pagesizes"
            :page-size.sync="tableFormatData.treasurehelp.pagination.list_rows"
            layout="total, sizes, prev, pager, next, jumper"
            :total="hasTableData?tableFormatData.treasurehelp.pagination.total : 0"
          ></el-pagination>
              </div>
              </div>
        </div>
    </div>
</template>
<script>
import {
assistUserDetail
} from '@/api/application'
import mixins from '@/mixins/mixins'
export default {
     mixins: [mixins.getters("Table")],
     name:'treasurehelp',
     data(){
         return{
             tableFormatData: {
        current: "treasurehelp",
        treasurehelp: {
          key: "treasurehelp",
          api: {
            getList: assistUserDetail,
          },
          tableData: [],
          goods: [],
          files: {
            uid:'',
            help_id:''
          },
          pagination: {
            page: 1,
            list_rows: 10,
            pagesizes: [10, 20, 50],
            total: 0,
          },
        },
      }, 
         }
     }
}
</script>